package org.example.gui;

import org.example.constant.OcrItem;
import org.example.context.OcrApplicationContext;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class JRadioButtonMenuItemActionListener implements ActionListener {

    private final OcrItem item;

    public JRadioButtonMenuItemActionListener(OcrItem item) {
        this.item = item;
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        OcrApplicationContext.setOcrItem(item);
    }
}
